﻿using DtoFw.Query;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DtoFw.Interface
{
    public interface IDic
    {
        [Api(Router = "dic/post")]
        BaseResult Post(DicAddDto dto);
        [Api(Router = "dic/put")]
        BaseResult Put(DicUpdateDto dto);
        [Api(Router = "dic/get/{params}")]
        BaseGenericResult<List<DicDto>> QueryToParentId(long parentId);

        [Api(Router = "dic/get/all")]
        BaseGenericResult<List<DicDto>> Query();

        [Api(Router = "dic/get/{params}/single")]
        BaseGenericResult<DicDto> Get(long id);

        [Api(Router = "dic/delete")]
        BaseResult Delete(DeleteSingleDto query);
    }
}
